const sakuraTree = document.getElementById('sakuraTree');
const petalsContainer = document.getElementById('petalsContainer');
 
sakuraTree.addEventListener('click', () => {
    for (let i = 0; i < 50; i++) {
        const petal = document.createElement('div');
        petal.classList.add('petal');
        petal.style.left = Math.random() * window.innerWidth + 'px';
        petal.style.animationDuration = (Math.random() * 3 + 2) + 's';
        petalsContainer.appendChild(petal);
 
        setTimeout(() => {
            petal.remove();
        }, 5000);
    }
});